				//open file to be deleted as filedel 
				ifstream filedel;

				//open for input in binary mode (mode doesn't really matter)
				filedel.open(three_way_hs.file_name, ios_base::in | ios_base::binary );

				//check if the requested file exists
				if (!filedel.is_open()) //file does not exit
				{
					//send packet to client indicating the file doesn't exist on the server
					message_frame.header = 'e'; //char e indicates an error
					
					//send error message to client
					//send(s, (char *)&message_frame, sizeof(message_frame), 0);	//For TCP
					sendto(s, (const char*)&message_frame, sizeof(message_frame), 0, (struct sockaddr*)&sa, sizeof(sa));

					//if file does not exist: error message
					cout <<"ERROR: File Does Not Exist!" << endl;
					cout << "File " << three_way_hs.file_name << " cannot be deleted!" << endl;
				}
				else //file exists on server
				{
					//close file
					filedel.close();

					//delete requested file
					remove(three_way_hs.file_name);

					//send packet to client indicating the file doesn't exist on the server
					message_frame.header = 's'; //char s indicates success

					//send success message to client
					//send(s, (char *)&message_frame, sizeof(message_frame), 0);	//For TCP
					sendto(s, (const char*)&message_frame, sizeof(message_frame), 0, (struct sockaddr*)&sa, sizeof(sa));
				}